<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="author" content="wangbo">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>history</title>
</head>

<body>
    <a href="./chp02-history2.html"> 先访访问页面2</a>
    <input type="button" value="接着访问" onclick="goBack()">
    <script>
        function goBack() {
            window.history.forward()
            // window.history.go(1)
            
        }
    </script>
</body>

</html>